package com.acme.bankapp.domain.bank;

public abstract class AbstractAccount implements Account
{
	protected int id;
	protected double balance;
	
	public AbstractAccount(final double amount)
	{
		this.id = this.hashCode();
		this.balance = amount;
	}
	
	public int getID()
	{
		return id;
	}

	public double getBalance()
	{
		return balance;
	}
	
	public abstract void deposit(final double amount);

	public abstract void withdraw(final double amount);
		
	public abstract double maximumAmountToWithdraw();
}
